/**
 * 接口管理
 * 用户中心>会员列表>会员信息
 */
import request from '@/utils/request';

// 获取会员信息
export const getUserInfo = (params = {}) => {
  return request('/Amaidan-Users-Web/user/userManage/getUserDetails', {
    method: 'POST',
    data: params
  })
}
// 获取地址信息
export const getAddress = (params = {}) => {
  return request('/Amaidan-Users-Web/vip/vipManage/VipAddressList', {
    method: 'POST',
    data: params
  })
}
// 获取会员标签
export const getUserTag = (params = {}) => {
  return request('/Amaidan-Users-Web/user/baseUserLabel/info', {
    method: 'POST',
    data: params
  })
}
// 获取开票信息
export const getInvoiceInfo = (params = {}) => {
  return request('/Amaidan-Users-Web/user/invoice/page', {
    method: 'POST',
    data: params
  })
}
// 获取商品记录
export const getProductRecord = (params = {}) => {
  return request('/Amaidan-Users-Web/user/visit/page', {
    method: 'POST',
    data: params
  })
}
// 获取消费记录
export const getConsumptionRecord = (params = {}) => {
  return request('/Amaidan-Order-Web/order-query/queryOrderListByUserIdForPc', {
    method: 'POST',
    data: params
  })
}
